package com.fupeng.netease;

import java.util.Scanner;

/**
 * Created by lecky on 2016/9/12 0012.
 */
public class Main {
    public static void main(String[] args) {
//        System.out.println(Integer.parseInt("0001"));
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.println(rev(rev(a)+rev(b)));
    }

    private static int rev(int a) {
        StringBuffer str = new StringBuffer().append(a).reverse();
        return Integer.parseInt(str.toString());
    }
}
